package com.prs.crm.domain.oa;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * OA公告收藏
 * @author zhoupeng 2012-3-27
 *
 */
@Entity
@Table(name="oa_announcement_collect")
public class AnnouncementCollect extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private Announcement announcement;
	@ManyToOne
	private AnnouncementReceive announcementReceive;
	@ManyToOne
	private AnnouncementCollectType type;  //类别
	
	public AnnouncementReceive getAnnouncementReceive() {
		return announcementReceive;
	}
	public void setAnnouncementReceive(AnnouncementReceive announcementReceive) {
		this.announcementReceive = announcementReceive;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Announcement getAnnouncement() {
		return announcement;
	}
	public void setAnnouncement(Announcement announcement) {
		this.announcement = announcement;
	}
	public AnnouncementCollectType getType() {
		return type;
	}
	public void setType(AnnouncementCollectType type) {
		this.type = type;
	}
	
}
